package com.syun.entry;

import com.syun.spring.ioc.core.annotation.Autowired;
import com.syun.spring.ioc.core.annotation.Component;
import com.syun.spring.ioc.core.annotation.Value;

@Component
public class A {

    @Value(value = "a-1")
    private String a1;
    @Value(value = "a-2")
    private String a2;
    @Value(value = "a-3")
    private String a3;

    @Autowired
    private B b;

    public B getB() {
        return b;
    }

    public void setB(B b) {
        this.b = b;
    }

    public String getA1() {
        return a1;
    }

    public void setA1(String a1) {
        this.a1 = a1;
    }

    public String getA2() {
        return a2;
    }

    public void setA2(String a2) {
        this.a2 = a2;
    }

    public String getA3() {
        return a3;
    }

    public void setA3(String a3) {
        this.a3 = a3;
    }

    @Override
    public String toString() {
        return "A{" +
                "a1='" + a1 + '\'' +
                ", a2='" + a2 + '\'' +
                ", a3='" + a3 + '\'' +
                ", b=" + b +
                '}';
    }
}
